import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'sixword'
})
export class SixwordPipe implements PipeTransform {

  transform(value: any, args?: any): any {
    let result = ""
    if(value){
      let temp = value.toString()
      if(temp.length>3){
        result = temp.substr(0,3)+"..."
      }
    }



    return result;
  }

}
